package com.usian.article.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.model.article.ApArticle;
import com.usian.model.article.ApCollection;
import com.usian.model.article.ArticleHomeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
     List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto dto, @Param("type") Short type);

    ApCollection findone(@Param("aid") Long entryId,@Param("eid") Integer entryId1);

    ApArticle findbyid(@Param("id") Long entryId);
}
